package com.itheima.cloudproviderpayment8003.service.impl;

import com.itheima.cloudproviderpayment8003.mapper.PaymentMapper;
import com.itheima.cloudproviderpayment8003.service.PaymentService;
import com.itheima.pojo.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    @Override
    public Payment findById(Integer id) {
        return paymentMapper.findById(id);
    }

    @Override
    public int insert(Payment payment) {
        return paymentMapper.insert(payment);
    }
}
